<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人资料</title>
    <style>
      
        .headerInformation {
            width: 95%;
            height: auto;
            background-color: #f8e3c5;
            margin: 15px auto;
            padding: 28px;
            border-radius: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            display: grid;
            grid-template-columns:1fr 3fr 1fr;
        }
        .headerimg {
            display: flex;
            flex-direction: column;/* 子元素垂直排列 */
            align-items: center;/* 子元素水平居中 */
            justify-content: center;/* 子元素垂直居中 */
        }
        .headerimg img {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin-bottom: 10px;
        }
        .headerimg div {
            font-size: 18px;
            font-weight: bold;
        }
        .info {
            font-size: 16px;
            display: flex;
            flex-wrap: wrap;
            /* background-color: aqua; */
            align-items: center;/* 子元素水平居中 */
            justify-content: center;/* 子元素垂直居中 */
        }
        .infoleft {
            /* max-width: 50%; */
            padding: 6px;
           
            /* background-color: #76f77f; */
            
        }
        .infoleft div {
            margin-bottom: 8px;
        }
        .inforight {
            /* max-width: 50%; */
            padding: 6px;
            /* background-color: #9a5f0d; */
        }
        .inforight div {
            margin-bottom: 8px;
        }
        
        
         
        @media (min-width: 1000px) {/* 屏幕宽度小于600px时，应用以下样式 */
            .info {
                font-size: 22px;
            }
            .infoleft {
            padding: 12px; 
        }
        .infoleft div {
                margin-bottom: 16px;
            }
       
        .inforight {
            padding: 12px;
        }
        .inforight div {
                margin-bottom: 16px;
            }
       
        .headerInformation {
            width: 90%;
            margin: 25px auto;
            padding: 38px;
        }
        }
    </style>
</head>
<body>
    <div class="headerInformation">
        <div class="headerimg">
            <img src="logo.png" alt="个人头像">
            <div>朱鹏飞</div>
        </div>
        <div class="info">
            <div class="infoleft">  
            <div>性&nbsp;&nbsp;&nbsp;别: 男</div>
            <div>年&nbsp;&nbsp;&nbsp;龄: 7</div>
            <div>手机号: 13910056081</div>
            <div>账 &nbsp; 号: VVIP202210027</div></div>
          <div class="inforight">
            <div>开通时间: 2022-10-09</div>
            <div>到期时间: 2032-10-31</div>
            <div>剩余天数: 1565天</div>
            <div>已训练天数: 295天</div>
          </div>
        </div>
        <!-- 空格占位符。 -->
        
    </div>
</body>
</html>
